<template>
    <div>
        <div v-if="this.brand != null">
            <brandpage></brandpage>
        </div>
        <div v-else>
            <categorypage></categorypage>
        </div>
    </div>
</template>

<script>
import brandpage from './goodspage/brandpage.vue'
import Categorypage from './goodspage/categorypage.vue'
export default {
  components: { brandpage, Categorypage },
    name: 'goods',
    data(){
        return{
            category : this.$route.query.category,
            brand : this.$route.query.brand
        }
    }
}
</script>
